#include "Song.h"

using namespace std;

/*---------------------------------------------------------------------------------------
--	FUNCTION:	Song::Song
--
--	DATE:			March 22, 2010
--
--	REVISIONS		(Date and Description):
--
--	DESIGNER:		Brad Paugh
--
--	PROGRAMMER:		Brad Paugh
--
--      INTERFACE:      Song::Song()
--
--	RETURNS:		
--
--	NOTES:
--		Default constructor for a Song
---------------------------------------------------------------------------------------*/
Song::Song()
{
	filename_ = "Default Song";
	votes_ = 0;
}

/*---------------------------------------------------------------------------------------
--	FUNCTION:	Song::Song
--
--	DATE:			March 22, 2010
--
--	REVISIONS		(Date and Description):
--
--	DESIGNER:		Brad Paugh
--
--	PROGRAMMER:		Brad Paugh
--
--  INTERFACE:      Song::Song(string filename)
--
--	RETURNS:		
--
--	NOTES:
--		Will construct a song with passed in filename and votes 0
---------------------------------------------------------------------------------------*/
Song::Song(string filename)
{
	filename_ = filename;
	votes_ = 0;
}

/*---------------------------------------------------------------------------------------
--	FUNCTION:	Song::vote
--
--	DATE:			March 22, 2010
--
--	REVISIONS		(Date and Description):
--
--	DESIGNER:		Brad Paugh
--
--	PROGRAMMER:		Brad Paugh
--
--  INTERFACE:      void vote()
--
--	RETURNS:		void
--
--	NOTES:
--		Simply votes for the song
---------------------------------------------------------------------------------------*/
void Song::vote()
{
	votes_++;
}

/*---------------------------------------------------------------------------------------
--	FUNCTION:	Song::setVotes
--
--	DATE:			March 22, 2010
--
--	REVISIONS		(Date and Description):
--
--	DESIGNER:		Brad Paugh
--
--	PROGRAMMER:		Brad Paugh
--
--  INTERFACE:      void setVotes(int votes)
--
--	RETURNS:		void
--
--	NOTES:
--		Sets the number of votes for this song
---------------------------------------------------------------------------------------*/
void Song::setVotes(int votes)
{
	votes_ = votes;
}

/*---------------------------------------------------------------------------------------
--	FUNCTION:	Song::getVotes
--
--	DATE:			March 22, 2010
--
--	REVISIONS		(Date and Description):
--
--	DESIGNER:		Brad Paugh
--
--	PROGRAMMER:		Brad Paugh
--
--  INTERFACE:      void setVotes(int votes)
--
--	RETURNS:		void
--
--	NOTES:
--		Sets the number of votes for this song
---------------------------------------------------------------------------------------*/
unsigned int Song::getVotes()
{
	return votes_;
}

/*---------------------------------------------------------------------------------------
--	FUNCTION:	Song::getFilename
--
--	DATE:			March 22, 2010
--
--	REVISIONS		(Date and Description):
--
--	DESIGNER:		Brad Paugh
--
--	PROGRAMMER:		Brad Paugh
--
--  INTERFACE:      string getFilename()
--
--	RETURNS:		string - filename of song
--
--	NOTES:
--		gets the filename of this song
---------------------------------------------------------------------------------------*/
string Song::getFilename()
{
	return filename_;
}
